package com.qlshouyu.len33.controller;

import com.qlshouyu.len33.config.AppConfig;
import com.qlshouyu.len33.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO
 *
 * @author 高露 邮箱：<a href="egojit@qq.com">egojit@qq.com</a>
 * @since 2019-10-26 07:53
 */
@RestController
@RequestMapping("/api/index")
public class IndexController {

    @Value("${qlshouyu.name}")
    private String name;

    @Autowired
    private AppConfig appConfig;

    @GetMapping
    public String index(){
        User u=new User();
        return String.format("%s",u.getName());
    }
}
